package com.breakfast.fun.ui.home.product;

import com.breakfast.fun.base.BaseModel;
import com.breakfast.fun.base.BasePresenter;
import com.breakfast.fun.base.BaseView;
import com.breakfast.fun.data.entity.home.product.ProductDetail;
import com.breakfast.fun.data.entity.home.product.ProductState;

import java.util.Map;

import retrofit2.http.FieldMap;
import rx.Observable;

/**
 * Created by yukai on 16/9/28.
 */

public interface SpecialProductContract {
    interface Model extends BaseModel {
        Observable<ProductState> getProductStateModel(@FieldMap Map<String, String> map);

        Observable<ProductDetail> getProductDetailModel(@FieldMap Map<String, String> map);
    }

    interface View extends BaseView {
        void showProductState(ProductState productState);

        void showProductDetail(ProductDetail productDetail);
    }

    abstract class Presenter extends BasePresenter<Model, View> {
        public abstract void getProductState();

        public abstract void getProductDetail(String classId);
    }
}
